function ResizeDataTable(dataTableId) {
	var objDataTable = document.getElementById(dataTableId);
	if (objDataTable != null) {
		objDataTable.style.width = objDataTable.parentNode.style.width.replace("px", "") - 5 + "px";
		objDataTable.style.height = objDataTable.parentNode.style.height.replace("px", "") - 165 + "px";
		objDataTable.parentNode.style.overflowY = "hidden";
	}
}

function ResizeTabs(idSubView) {
	
	var objDivContainer = document.getElementById('divContainer');
	if (objDivContainer != null) {
		objDivContainer.style.overflowY = "hidden";
		var height = objDivContainer.style.height.replace("px", "") - 30 + "px";
		var objTabGeral = document.getElementById(idSubView + "tabGeral");
		if (objTabGeral != null) {
			objTabGeral.style.overflow = "hidden";
			objTabGeral.style.height = height;
			var objPnl = document.getElementById("pnlGeral");
			if (objPnl != null) {
				objPnl.style.overflowX = "hidden";
				objPnl.style.overflowY = "scroll";
				objPnl.style.height = objTabGeral.style.height;
				objPnl.style.width = objTabGeral.style.width;
			}
		}
		var objTabAmostras = document.getElementById(idSubView + "tabAmostras");
		if (objTabAmostras != null) {
			objTabAmostras.style.overflow = "hidden";
			objTabAmostras.style.height = height;
			objPnl = document.getElementById("pnlAmostras");
			if (objPnl != null) {
				objPnl.style.overflowX = "hidden";
				objPnl.style.overflowY = "scroll";
				objPnl.style.height = objTabAmostras.style.height;
				objPnl.style.width = objTabAmostras.style.width;
			}
		}
		var objTabFechamento = document.getElementById(idSubView + "tabFechamento");
		if (objTabFechamento != null) {
			objTabFechamento.style.overflow = "hidden";
			objTabFechamento.style.height = height;
			objPnl = document.getElementById("pnlFechamento");
			if (objPnl != null) {
				objPnl.style.overflowX = "hidden";
				objPnl.style.overflowY = "scroll";
				objPnl.style.height = objTabFechamento.style.height;
				objPnl.style.width = objTabFechamento.style.width;
			}
		}
	}
}

function ResizeTab(idTab) {
	
	var objDivContainer = document.getElementById('divContainer');
	if (objDivContainer != null) {
	
		var objTab = document.getElementById(idTab);
		if (objTab != null) {
			objTab.style.overflow = "hidden";
			objTab.style.height = objDivContainer.style.height.replace("px", "") - 30 + "px";
			var objPnl = document.getElementById(idTab.toString().replace("tab", "pnl").substring(idTab.toString().lastIndexOf(":") + 1, idTab.toString().lenght));
			if (objPnl != null) {
				objPnl.style.overflowX = "hidden";
				objPnl.style.overflowY = "scroll";
				objPnl.style.height = objTab.style.height;
				objPnl.style.width = objTab.style.width;
			}
		}
	}
}